package com.yiminer.service;

import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.WebClient;

public class WebClientFactory {

	private static WebClient webClient = null;

	public static WebClient getInstance() {
		webClient = new WebClient(BrowserVersion.CHROME);
		webClient.getOptions().setThrowExceptionOnScriptError(false);

		return webClient;
	}

}
